package com.ruoyi.related_links.domain;

import java.time.LocalDate;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 相关链接对象 hs_related_links
 * 
 * @author lzk
 * @date 2025-06-18
 */
@Schema(description = "相关链接对象")
public class HsRelatedLinks extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    /** 主键 */
    @Schema(title = "主键")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 热搜主题ID */
    @Schema(title = "热搜主题ID")
    @Excel(name = "热搜主题ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long topicId;

    /** 相关链接URL */
    @Schema(title = "相关链接URL")
    @Excel(name = "相关链接URL")
    private String relatedUrl;

    /** 爬取状态: 0-未处理, 1-爬取成功, 2-爬取失败 */
    @Schema(title = "爬取状态: 0-未处理, 1-爬取成功, 2-爬取失败")
    @Excel(name = "爬取状态: 0-未处理, 1-爬取成功, 2-爬取失败")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long crawlStatus;

    /** 创建者 */
    @Schema(title = "创建者")
    @Excel(name = "创建者")
    private String createdBy;

    /** 创建时间 */
    @Schema(title = "创建时间")
    @Excel(name = "创建时间")
    private LocalDate createdTime;

    /** 更新者 */
    @Schema(title = "更新者")
    @Excel(name = "更新者")
    private String updatedBy;

    /** 更新时间 */
    @Schema(title = "更新时间")
    @Excel(name = "更新时间")
    private LocalDate updatedTime;

    /** 删除标志（0代表存在 2代表删除） */
    @Schema(title = "删除标志（0代表存在 2代表删除）")
    private String delFlag;
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }


    public void setTopicId(Long topicId) 
    {
        this.topicId = topicId;
    }

    public Long getTopicId() 
    {
        return topicId;
    }


    public void setRelatedUrl(String relatedUrl) 
    {
        this.relatedUrl = relatedUrl;
    }

    public String getRelatedUrl() 
    {
        return relatedUrl;
    }


    public void setCrawlStatus(Long crawlStatus) 
    {
        this.crawlStatus = crawlStatus;
    }

    public Long getCrawlStatus() 
    {
        return crawlStatus;
    }


    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }


    public void setCreatedTime(LocalDate createdTime) 
    {
        this.createdTime = createdTime;
    }

    public LocalDate getCreatedTime() 
    {
        return createdTime;
    }


    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }


    public void setUpdatedTime(LocalDate updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public LocalDate getUpdatedTime() 
    {
        return updatedTime;
    }


    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("topicId", getTopicId())
            .append("relatedUrl", getRelatedUrl())
            .append("crawlStatus", getCrawlStatus())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedTime", getUpdatedTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
